<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.lemurian.bankdata.lite.utils.GlobalFunction" %>

<div class="header"><span><span class="ico gray administrator"></span>Pengecekan Sertifikat</span>
</div><!-- End header -->	
<div class="content" >
	<s:form name="formBody" id="validation_demo">
	    <s:hidden name="start"/>
	    <s:hidden name="count"/>
	    <s:hidden name="orderBy"/>
	    <s:hidden name="ascDesc"/>
	    <s:hidden name="previousPage"/>
	    <s:hidden name="actionMethod" value="%{actionMethod}"/>
	    <s:hidden name="subaction"/>
	    <s:hidden name="id" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"/>
	    <s:token/>
	
		<!-- Third / Half column-->
		<div class="widgets">
		
				<div class="twoOne">
						<div class="section" >
							<label> Nama Sertifikat </label>   
							<div> 
								<s:textfield cssClass="validate[required] text-input large" name="certificate.name"
	                            labelposition="left" maxlength="45" id="name" autocomplete="off"/>
							</div>
						</div>
						<div class="section" >
							<label> Nomor Sertifikat </label>   
							<div>
								<s:textfield cssClass="validate[required] text-input large" name="certificate.number"
	                            labelposition="left" maxlength="45" id="name" autocomplete="off"/> 
							</div>
						</div>
						<div class="section" >
							<label> Jenis Sertifikat </label>   
							<div>
								<s:select
										list="listSertifikat" 
										listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" 
										listValue="name"
										name="sertifikatId"
										value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(sertifikatId)}"
										headerKey="" 
										headerValue="Select below" 
										disabled="%{readOnly}" 
										tooltip="" 
									/>
							</div>
						</div>
						<div class="section" >
							<label> Keterangan </label>   
							<div>
								<s:select
										list="listSertifikatRemarks" 
										listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" 
										listValue="name"
										name="remarksId"
										value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(remarksId)}"
										headerKey="" 
										headerValue="Select below" 
										disabled="%{readOnly}" 
										tooltip="" 
									/>
							</div>
						</div>
						<div class="section" >
							<label> Kelurahan </label>   
							<div>
								<s:textfield cssClass="validate[required] text-input large" name="certificate.village"
	                            labelposition="left" maxlength="45" id="name" autocomplete="off"/> 
							</div>
						</div>
						<div class="section" >
							<label> Wilayah </label>   
							<div>
								<s:textfield cssClass="validate[required] text-input large" name="certificate.reqion"
	                            labelposition="left" maxlength="45" id="name" autocomplete="off"/> 
							</div>
						</div>
						
						<div class="section" >
							<label> Klien </label>   
							<div>
								<s:if test="certificate.client.debitur != null">
									<s:property value="certificate.client.debitur.name"/><br>
									<small>Hapus Klien</small><s:checkbox name="hapus"></s:checkbox>
								</s:if>
								<s:else>
									-
								</s:else>
							</div>
						</div>
						
						<div class="section" >
							<div class="section last">
								<s:submit action="%{actionMethod}" value="simpan" cssClass="uibutton confirm" cssStyle="width:100px"/>
								<a href="SertifikatAction_list.do" class="uibutton special">kembali</a> 					
							</div>
						</div>                        	
				</div>
		</div><!-- End Third / Half column-->
	
	</s:form>

   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->